package com.woniuxy.pojo;

import java.math.BigDecimal;

/**
 * @Author 罗蔚
 * @Date 2022/3/26 23:02
 * @Description TODO
 */
public class Cart {
    private Integer id;
    private int userid;
    private int goodsid;
    private BigDecimal price;
    private int nums;
    private int status;

    private Goods goods;

    public Cart() {
    }

    public Cart(Integer id, int userid, int goodsid, BigDecimal price, int nums, int status, Goods goods) {
        this.id = id;
        this.userid = userid;
        this.goodsid = goodsid;
        this.price = price;
        this.nums = nums;
        this.status = status;
        this.goods = goods;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(int goodsid) {
        this.goodsid = goodsid;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", userid=" + userid +
                ", goodsid=" + goodsid +
                ", price=" + price +
                ", nums=" + nums +
                ", status=" + status +
                ", goods=" + goods +
                '}';
    }
}
